/** 获取随机ID字符串 */
export const UUID = () => `${Date.now().toString(36)}-${Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(36)}`

export const delay = (time = 1000) => new Promise<void>(resolve => setTimeout(resolve, time))